package me.zhengjie.modules.mockexam.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CrawlingConfig {


    @Data
    public static class CrawlingConfigProperties {
        //url
        private String url;
        //接口唯一标识
        private String key;
        //选题类型(全部)
        private String models;
        //查询选题类型
        private String model;
        //科目类型
        private String subject;
        //获取类型
        private String testType;


    }

    @Bean
    @ConfigurationProperties(prefix = "crawling")
    public CrawlingConfigProperties CrawlingConfig() {
        return new CrawlingConfigProperties();
    }
}
